/*Confidential and Proprietary, Subject to the Non-Disclosure Agreement,
Version 1.0, between the Development Gateway Foundation, Inc and the
Recipient Copyright 2001-2004 Development Gateway Foundation, Inc.

Local Projects Database
*/
package ro.gateway.aida.db;

/**
 * @author Mihai Postelnicu
 * e-mail: mihai@ro-gateway.org
 */
public class OracleDBConnector extends DBConnector {
	protected String tablespace;

	public OracleDBConnector(String tablespace) {
		this.tablespace=tablespace;
		this.port=1521;
	}
	
	public String createURL() { 
		return "jdbc:oracle:thin:@"+host+":"+port+":"+tablespace;
	}

	public String driverName() {
		return "oracle.jdbc.driver.OracleDriver";
	}
	/**
	 * @return Returns the tablespace.
	 */
	public String getTablespace() {
		return tablespace;
	}

	public String getDriverClass() {
	    return DRIVER;
	}
	
	private static final String DRIVER="oracle.jdbc.driver.OracleDriver";
}
